import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col } from 'antd'
import { Page } from '@/components/Page'
import styles from './index.less'


class Dashboard extends React.Component {
   testClick = () => {
     const { dispatch } = this.props
     console.log(22222)
    dispatch({
      type: 'dashboard/changeCount',
      payload: 2
    })
  }
  render() {
    const { count } = this.props
    return (
      <Row gutter={24} onClick={this.testClick}>
        <Col lg={18} md={24}>
          dashboard {count}
        </Col>
      </Row>
    )
  }

}

export default connect(({ dashboard }) => dashboard)(Dashboard)
